package com.ruoyi.zzw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zzw.mapper.PeopleManageMapper;
import com.ruoyi.zzw.domain.PeopleManage;
import com.ruoyi.zzw.service.TPeopleManageService;

/**
 * 人员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
@Service
public class PeopleManageServiceImpl implements TPeopleManageService
{
    @Autowired
    private PeopleManageMapper peopleManageMapper;

    /**
     * 查询人员管理
     * 
     * @param cPeopleId 人员管理主键
     * @return 人员管理
     */
    @Override
    public PeopleManage selectTPeopleManageByCPeopleId(Long cPeopleId)
    {
        return peopleManageMapper.selectTPeopleManageByCPeopleId(cPeopleId);
    }

    /**
     * 查询人员管理列表
     * 
     * @param peopleManage 人员管理
     * @return 人员管理
     */
    @Override
    public List<PeopleManage> selectTPeopleManageList(PeopleManage peopleManage)
    {
        return peopleManageMapper.selectTPeopleManageList(peopleManage);
    }

    /**
     * 新增人员管理
     * 
     * @param peopleManage 人员管理
     * @return 结果
     */
    @Override
    public int insertTPeopleManage(PeopleManage peopleManage)
    {
        return peopleManageMapper.insertTPeopleManage(peopleManage);
    }

    /**
     * 修改人员管理
     * 
     * @param peopleManage 人员管理
     * @return 结果
     */
    @Override
    public int updateTPeopleManage(PeopleManage peopleManage)
    {
        return peopleManageMapper.updateTPeopleManage(peopleManage);
    }

    /**
     * 批量删除人员管理
     * 
     * @param cPeopleIds 需要删除的人员管理主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleManageByCPeopleIds(Long[] cPeopleIds)
    {
        return peopleManageMapper.deleteTPeopleManageByCPeopleIds(cPeopleIds);
    }

    /**
     * 删除人员管理信息
     * 
     * @param cPeopleId 人员管理主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleManageByCPeopleId(Long cPeopleId)
    {
        return peopleManageMapper.deleteTPeopleManageByCPeopleId(cPeopleId);
    }
}
